
import query from '@dfeidao/atom-nodejs/db/query';
interface Message {
	filter: {
		productid: string;
		client_type: string;
	};
}

export default async function atom(msg: Message, action_id: string, session_id: string) {
	const { exec, prepare } = query(action_id, session_id, '12');
	prepare('pub_form_group', ['group_name', 'group_number'], msg.filter, 200, 1, [], []);
	const [data] = await exec();
	return { dataArray: data };
}
